package conf

import "time"

var (
	Version   = ""
	GitHash   = ""
	BuildTime = ""
)

//client agent
var ClientListenStr string
var EtcdServiceAddressPrefix = "lark.address."
var DoveKeyOfEtcdEndpoints = "RpcPool.Etcd.Servers"

var ClientAgentLogFileName string
var ClientAgentLogLevel string
var ClientAgentLogMaxSize = 1024 * 1024 * 1024
var ClientAgentLogDaily = true
var ClientAgentLogMaxDays = 10
var ClientAgentLogPerm = "0644"
var ClientAgentLogRotatePerm = "0444"

//server agent
var ServerListenStr string

var ServerAgentLogFileName string
var ServerAgentLogLevel = "debug"
var ServerAgentLogMaxSize = 1024 * 1024 * 1024
var ServerAgentLogDaily = true
var ServerAgentLogMaxDays = 10
var ServerAgentLogPerm = "0644"
var ServerAgentLogRotatePerm = "0444"

//dove
var DoveClientAddr string
var DoveClientDialTimeout = time.Second * 3
var ReadDoveClientTimeout = time.Second * 3
var WriteDoveClientTimeout = time.Second * 3

//etcd
var EtcdEndpoints []string
var EtcdSyncEndpointsTime = time.Minute * 10
var EtcdDialTimeout = time.Second * 3
var EtcdDialKeepAliveTime = time.Second * 3
var EtcdDialKeepAliveTimeout = time.Second * 3
var EtcdRequestTimeout = time.Second * 3

// dove使用的etcd地址
var BackupEtcdEndpoints []string
var DoveKeyOfBackupEtcdEndpoints = "RpcPool.BackupEtcd.Servers"
var DoveKeyUseBackup = "RpcPool.UseBackup"
var EtcdBackupServiceAddressPrefix = "lark.backup_address."

//other
var ServiceSnapshotPath string
var ProtoVersion1 uint32 = 1
var OSMaxOpenFiles uint64
var HTTPAdminAddr string
var ServerAgentToBusinessMaxIdleTime time.Duration
var AdminWhitelist []string
var DoveKeyOfAdminWhitelist = "RpcPool.Lark.Admin.Whitelist"
